/* ===== Variáveis Globais ===== */
:root {
  --primary: #2f5dff;
  --primary-light: #e6ecff;
  --bg: #f5f7fb;
  --text: #111827;
  --text-muted: #6b7280;
  --card-bg: #ffffff;
  --border-soft: #e5e7eb;
  --radius: 18px;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 16px 45px rgba(15, 23, 42, 0.15);
}

/* Reset básico */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Source Sans Pro", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== TOPBAR ===== */
.topbar {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo-sisp-img {
  height: 70px; /* ajuste o tamanho do logo aqui */
  width: auto;
  display: block;
}

/* Relógio */
.clock-wrapper {
  text-align: right;
  font-size: 14px;
}

.clock-time {
  font-weight: 700;
  font-size: 20px;
}

.clock-date {
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== CONTEÚDO PRINCIPAL ===== */
.main {
  flex: 1;
}

.main-inner {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px 40px;
}

/* Cabeçalho da página */
.page-header h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 4px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 16px;
}

/* ===== FILTROS (PILLS) ===== */
.filters-bar {
  margin: 24px 0 20px 0;
}

.filters-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 8px 18px;
  background: #e5e7eb;
  color: #374151;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease,
    transform 0.1s ease;
}

.pill-active,
.pill:hover {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

/* ===== GRID DE CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

/* Card */
.card {
  display: flex;
  gap: 12px;
  padding: 18px 16px;
  background: var(--card-bg);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

/* Ícone do card */
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Corpo do card */
.card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.card-header h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  margin-right: 6px;
}

.card-ext {
  font-size: 18px;
  opacity: 0.45;
}

.card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
}

/* ===== RODAPÉ ===== */
.footer {
  width: 100%;
  text-align: center;
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-muted);
  background: #ffffff;
  margin-top: auto;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 720px) {
  .topbar-inner {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .clock-wrapper {
    text-align: left;
  }
}

.card-icon-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
